package org.easydarwin.util;

import java.util.List;

/**
 * Created by stamSuper on 2017/12/30.
 * 功能：
 */

public class ListUtil {
    public static String ListObj2StringArr(List<? extends Object> datas){
        if(null == datas || datas.size() == 0){
            return null;
        }
        StringBuilder sb = new StringBuilder();
        sb.append("[");
        for(Object data : datas){
            sb.append(data.toString()).append(",");
        }
        sb.deleteCharAt(sb.length()-1).append("]");
        return sb.toString();
    }
}
